package Message.Login
{
	import Framework.Serialize.*;
	
	public class SLogin extends Object
	{
		public var username:String;
		public var userId:int;
		public var server:String;
		public var time:Date;
		public var flag:String;
		public var country:int;
		public var isAdult:int;
		public var version:int;
		public var platformCode:String;
		public var password:String;
		public var loginIp:String;
		public var totalOnlineTime:int;
		public var platformUserName:String;
		public var issm:int;
		public var playerId:int;
		public var gateIp:String;
		
		public function SLogin()
		{
		}
		
		public function __write(stream:SerializeStream) : void
		{
			stream.writeString(this.username);
			stream.writeInt(this.userId);
			stream.writeString(this.server);
			stream.writeDate(this.time);
			stream.writeString(this.flag);
			stream.writeInt(this.country);
			stream.writeInt(this.isAdult);
			stream.writeInt(this.version);
			stream.writeString(this.platformCode);
			stream.writeString(this.password);
			stream.writeString(this.loginIp);
			stream.writeInt(this.totalOnlineTime);
			stream.writeString(this.platformUserName);
			stream.writeInt(this.issm);
			stream.writeInt(this.playerId);
			stream.writeString(this.gateIp);
		}
		
		public function __read(stream:SerializeStream) : void
		{
			this.username = stream.readString();
			this.userId = stream.readInt();
			this.server = stream.readString();
			this.time = stream.readDate();
			this.flag = stream.readString();
			this.country = stream.readInt();
			this.isAdult = stream.readInt();
			this.version = stream.readInt();
			this.platformCode = stream.readString();
			this.password = stream.readString();
			this.loginIp = stream.readString();
			this.totalOnlineTime = stream.readInt();
			this.platformUserName = stream.readString();
			this.issm = stream.readInt();
			this.playerId = stream.readInt();
			this.gateIp = stream.readString();
		}
	}
}
